package org.springblade.tms.module.exceptionrecord.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @projectName: BladeX
 * @package: org.springblade.tms.module.exceptionrecord.dto
 * @className: ExceptionRecordDTO
 * @author: yr
 * @description: 异常记录查询入参
 * @date: 2022/3/29 17:43
 */
@Data
public class ExceptionRecordDTO implements Serializable {
	@ApiModelProperty("需求单号")
	private String demandOrderNumber;
	@ApiModelProperty("运输单号")
	private String shippingNoteNumber;
	@ApiModelProperty("异常类型")
	private String exceptionType;
	@ApiModelProperty("运单状态")
	private String waybillStatus;
	@ApiModelProperty("异常时间开始")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime abnormalTimeStarts;
	@ApiModelProperty("异常时间结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime abnormalTimeEnd;
}
